package Command;

import Server.Command;
import Server.cmdArguments;

public class MaxCommand implements Command{

	private cmdArguments args;

	@Override
	public String execute() {		
		int max = args.bst.getMaxValue();
		if(max != -1){
			return "The maximum value is "+args.bst.getMaxValue();
		}
		return "There is nothing in the tree yes";
	}

	@Override
	public String undo() {		
		return "Can't undo a request for teh maximum, please try again";
	}

	@Override
	public void setArgs(cmdArguments args) {
		this.args = args;		
	}
	

}
